package com.cz.nongyetongv5.bean;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 广告
 *
 * @author Wild
 *
 */
public class AdvBean implements Serializable {

	private String url;

	private String time;

	private boolean show;

	private byte[] bitmapByte;

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public boolean isShow() {

		String nowTime = new SimpleDateFormat("yyyy-MM-dd").format(new Date());

		return nowTime.compareToIgnoreCase(time) < 0;
	}

	public void setShow(boolean show) {
		this.show = show;
	}

	public byte[] getBitmapByte() {
		return bitmapByte;
	}

	public void setBitmapByte(byte[] bitmapByte) {
		this.bitmapByte = bitmapByte;
	}

}
